package cn.mypayment.mail.base;

import javax.mail.*;
/**
 *
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2005</p>
 * <p>Company: PomInfo</p>
 * @author Tim huang
 * @version 1.0
 */

public class SwanetAuthenticate extends Authenticator{

  String sUsername = null;
  String sPassword = null;

  public SwanetAuthenticate(String username, String password){
  // Assign username and password values passed in data from calling mail connection
    sUsername = username;
    sPassword = password;
  }
  // username/password get authenticated next line
  protected PasswordAuthentication getPasswordAuthentication(){
    return new PasswordAuthentication(sUsername, sPassword);
  }

}
